package com.anlogic.sdk.bootimage.internal;

import com.anlogic.sdk.bootimage.Activator;
import org.eclipse.jface.preference.FieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.StringFieldEditor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;

public class BootImagePreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
	private StringFieldEditor bootgenScriptNameEditor;

	public BootImagePreferencePage() {
		super(1);
		setPreferenceStore(Activator.getDefault().getPreferenceStore());
		setDescription("Boot Image Preferences");
	}

	public void init(IWorkbench workbench) {
	}

	protected void createFieldEditors() {
		this.bootgenScriptNameEditor = new StringFieldEditor("bootimage.script.name.pref",
				"Command to create boot image", getFieldEditorParent());
		addField((FieldEditor) this.bootgenScriptNameEditor);
	}
}
